﻿(function () {
    var app = angular.module('app');
    var config = {
        removeServiceUrl: 'http://localhost:22362/api/',
        rootUrl: 'http://localhost:22362/',
        events: {
            activateController: 'activateControllerSuccess'
        }
    };
    var url = {
        //Acount
        Token: config.rootUrl + 'Token',
        SetToken: config.removeServiceUrl + 'Account/SetToken',
        //Car
        GetCars: config.removeServiceUrl + 'Car',
        AddCars: config.removeServiceUrl + 'Car/Add',
        GetBrandNameList: config.removeServiceUrl + 'Car/GetBrandNameList',
        GetCarTypeList: config.removeServiceUrl + 'Car/GetCarTypeList',
        EditCar: config.removeServiceUrl + 'Car/UpdateCar'
    };
   

    app.constant('config', config);
    app.constant('apiresource', url);
})();